package cn.org.itool.ws.template;

import cn.org.itool.common.constent.LoginEnum;
import cn.org.itool.common.factory.FrameLoginServiceFactory;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class WsLoginTemplate {

    private final LoginEnum loginEnum = LoginEnum.WS;

    @Resource
    private FrameLoginServiceFactory frameLoginServiceFactory;

    public String getUserIdByToken(String token){
        return frameLoginServiceFactory.getUserIdByToken(token, loginEnum);
    }
}
